package com.shop.front.service.impl;

import com.shop.common.pojo.ProductType;
import com.shop.front.mapper.ProductTypeMapper;
import com.shop.front.service.ProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ghy
 * @version 1.0
 * @date 2020-11-02
 */
@Service
public class ProductTypeServiceImpl implements ProductTypeService {

    @Autowired
    ProductTypeMapper productTypeMapper;

    @Override
    public List<ProductType> findAll() {
        //缓存
        return productTypeMapper.findAll();
    }
}
